﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SSCCMembership.Web
{
    public static class UpdateHelper
    {
        public static void UpdateProperty(this object obj, string PropertyName, object value)
        {
            obj.GetType().GetProperty(PropertyName).GetSetMethod().Invoke(obj, new object[] { value });
        }
    }
}